<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8"/>
    <title> 4-1 做判断（if语句）</title>
    <link rel="stylesheet" type="text/css" href="../../../css/style.css"/>
    <style type="text/css">
    </style>

    <script type="text/javascript">
        var mypen = "black"; //定义变量mypen，存储笔的黑色。
        if(mypen=="black")
        {
            document.write("笔是黑色的，所以购买");
        }
    </script>
</head>

<body>
<div align="center">
    <p><a href="../../index.php#jsjjp" class="fontSize" title="点击进入该目录">目录</a></p>
</div>

<!--<input type="button" onclick="zhencha()" value="点击查询"/>-->

<script type="text/javascript">

</script>

</body>
</html>
